package mysql

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(20);not null;index:ip_idx commit:'账号'"`
	Password string `gorm:"type:varchar(50);not null;index:ip_idx commit:'密码'"`
	Name     string `gorm:"type:varchar(20);not null;index:ip_idx commit:'名字'"`
	Tel      string `gorm:"type:varchar(20);not null;index:ip_idx commit:'电话'"`
	Address  string `gorm:"type:varchar(20);not null;index:ip_idx commit:'家庭住址'"`
}
